<%@page import="org.apache.commons.beanutils.converters.DateConverter"%>
<%@page import="java.util.Date"%>
<%@page import="com.beinfo.contract.model.Contract"%>
<%@page import="com.beinfo.contract.dao.ContractDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.sql.*" %>
<%@ page import="java.text.*"%>
<%@ include file="dbconn.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>合同管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
</script>


</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li>到期提醒</li>
    </ul>
    </div>
    
    <div class="rightinfo">
    <table class="tablelist">
    	<thead>
    	<tr>
        <th width="5%"><input name="" type="checkbox" value="" checked="checked"/></th>
        <th width="10%">合同编号<i class="sort"><img src="images/px.gif" /></i></th>
        <th width="32%">合同名称</th>
        <th width="9%">草拟员工</th>
        <th width="9%">审批人</th>
        <th width="14%">到期时间</th>
        <th width="11%">已收付金额</th>
        <th width="10%">操作</th>
        </tr>
        </thead>
        <%
	        ContractDao dao=new ContractDao();
	    	List<Contract> list=dao.daoqiTitle();    
    	//	try{
    			
    	//	}catch(ParseException e){
    	//		System.out.println(e.getMessage());
    	//	}

        	for(int i=0;i<list.size();i++){        		
        		Contract t1=list.get(i);
        		//Date sdf=Date.parseDate(String.valueOf(dstr));
        		//Date sdf=new Date(dstr);
        		%>
        		<tr>
                <td><input name=""  type="checkbox" value="" /></td>
                <td><%=t1.getCon_id()%></td>
                <td><%=t1.getCon_name()%></td>
                <td><%=t1.getCon_drafter() %></td>
                <td><%=t1.getCon_approver() %></td>
                <td><%=t1.getClosing_date()%></td>
                <td><%=t1.getCon_pay() %></td>
                <td><a href="detail.jsp?con_id=<%=t1.getCon_id()%>" class="tablelink">查看</a>     <a href="#" class="tablelink"> 删除</a></td>
                </tr>
        	<%
        		} %>
        	</table>
 
   
    <div class="pagin">
   	  <div class="message">共<i class="blue">1</i>条记录，当前显示第&nbsp;<i class="blue">1&nbsp;</i>页</div>
        <ul class="paginList">
        <li class="paginItem"><a href="javascript:;"><span class="pagepre"></span></a></li>
        <li class="paginItem current"><a href="javascript:;">1</a></li>
        <li class="paginItem"><a href="javascript:;"><span class="pagenxt"></span></a></li>
        </ul>
    </div>
    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
